﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Dto.Business.ProductionControl {
    public class CksDeviceRunRecordQueryDto : PagerInfo {
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }

        /// <summary>
        /// 结束时间 
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }

        /// <summary>
        /// 站点编号
        /// </summary>
        public string StationCode { get; set; }

    }

    /// <summary>
    /// 设备运行记录输入输出对象
    /// </summary>
    public class CksDeviceRunRecordDto {

        [Required(ErrorMessage = "Id不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "PLCID不能为空")]
        public int PlcId { get; set; }

        [Required(ErrorMessage = "数据块不能为空")]
        public int DbBlock { get; set; }

        [Required(ErrorMessage = "开始时间不能为空")]
        public DateTime? StartTime { get; set; }

        public DateTime? EndTime { get; set; }

        public int? Duration { get; set; }

        public int EffectType { get; set; }

        public string EffectReason { get; set; }

        public DateTime? CreateTime { get; set; }

        //[Required(ErrorMessage = "逻辑删除不能为空")]
        //public bool IsDeleted { get; set; }


        //[ExcelColumn(Name = "影响类型")]
        //public string EffectTypeLabel { get; set; }

        public string ProductionLineCode { get; set; }

        public string StationCode { get; set; }
    }


}
